import os

for i in [2, 4, 6, 8]:
    os.system("bash mpirun -np %d ./a.exe"%i)

